package org.example.myleet.p1089;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        //example 1
        int[] arr = new int[]{1,0,2,3,0,4,5,0};
        solution.duplicateZeros(arr);
        Assert.isTrue("[1,0,0,2,3,0,0,4]".equals(JsonUtils.toJson(arr)));
        //example 2
        arr = new int[]{1,2,3};
        solution.duplicateZeros(arr);
        Assert.isTrue("[1,2,3]".equals(JsonUtils.toJson(arr)));
    }
}
